//
// Created by Bili_TianX_Computer on 2021/7/10.
//

#ifndef SUPERMARKETMANAGESYSTEM_ADDPRODUCTDIALOG_H
#define SUPERMARKETMANAGESYSTEM_ADDPRODUCTDIALOG_H

#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QFormLayout>
#include <QTableWidget>
#include <QCheckBox>
#include <QPushButton>
#include <QInputDialog>
#include <QLineEdit>
#include <QDebug>
#include <QDialog>
#include <QMessageBox>
#include <QDialogButtonBox>
#include "../../data/ProductDataManager.h"

class AddProductDialog : public QDialog
{
Q_OBJECT
public:
    Product *product;

    QDialogButtonBox *box;
    QLineEdit *nameEdit;
    QLineEdit *purchasePriceEdit;
    QLineEdit *sellingPriceEdit;
    QLineEdit *stockEdit;
    QLineEdit *unitEdit;

    QFormLayout *editLayout;
    QVBoxLayout *widgetLayout;

    AddProductDialog();

public slots:

    void acceptedSlot();

    void rejectedSlot();

};

#endif //SUPERMARKETMANAGESYSTEM_ADDPRODUCTDIALOG_H
